// 枚举
interface Page {
	current: number;
	size: number;
}

export const getOffsetByPage = (page: Page) => {
	const { current, size } = page;
	return {
		Offset: (current - 1) * size,
		Limit: size
	}
};
